home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 7661 / 7661.xpi / chrome / isreaditlater.jar / content / list.xul < prev    next >
Extensible Markup Language  |  2009-12-15  |  12KB  |  231 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay SYSTEM "chrome://isreaditlater/locale/isreaditlater.dtd">
  4.  
  5. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://isreaditlater/skin/ril.css" type="text/css"?>
  7.  
  8. <overlay id="overlay"
  9.     xmlns:html="http://www.w3.org/1999/xhtml"
  10.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  11.     
  12.     <popupset id="mainPopupSet">
  13.         
  14.         <menupopup id="RIL_context_sync" onpopupshowing="RIL.onContextSync()">
  15.             <menuitem id="RIL_context_normalSync" label="&ril.normalSync;" onclick="RIL.APP.SYNC.sync(false, true)" />
  16.             <menuitem id="RIL_context_fullSync" label="&ril.fullSync;" onclick="RIL.APP.SYNC.sync(true, true)" />
  17.             <menuitem id="RIL_context_cancelSync" label="&ril.cancelSync;" onclick="RIL.APP.SYNC.cancelSync()" />
  18.         </menupopup>
  19.  
  20.         
  21.         <menupopup id="RIL_list_chooser_menu" position="after_start">      
  22.           <menuitem label="&ril.readingList;" oncommand="RIL.switchToList('list');"/>    
  23.           <menuitem label="&ril.currentlyReading;" oncommand="RIL.switchToList('current');"/>    
  24.           <menuitem label="&ril.readArchive;" oncommand="RIL.switchToList('read');"/>        
  25.           <menuitem label="&ril.tags;" oncommand="RIL.switchToList('tags');"/>    
  26.         </menupopup>
  27.             
  28.         <panel id="RIL_list" onpopuphiding="RIL.listClosing();" >
  29.             
  30.             <vbox id="RIL_list_inner" >
  31.                 
  32.                 <hbox id="RIL_menu">
  33.                     
  34.                     <hbox>
  35.                         <label tooltiptext="&ril.selectAList;" popup="RIL_list_chooser_menu" id="RIL_chooser" value="&ril.readingList;" oncommand="RIL.openListChooser()" />                        
  36.                     </hbox>
  37.                     <spacer flex="1"/>
  38.                     <hbox id="RIL_menu_btns" align="right">
  39.                         <label tooltiptext="&ril.sync;" context="RIL_context_sync" id="RIL_btnSync" value=" " />
  40.                         <label tooltiptext="&ril.goOffline;" id="RIL_btnDown" onclick="RIL.openOfflineWindow()" value=" " />
  41.                         <label tooltiptext="&ril.options;" id="RIL_btnOptions" onclick="RIL.openOptions()" />
  42.                     </hbox>                        
  43.                       
  44.                 </hbox>
  45.                 
  46.                 <vbox id="RIL_list_body">
  47.                     
  48.                     <hbox id="RIL_filters">
  49.                         
  50.                         <textbox flex="1" id="RIL_filter"
  51.                                 clickSelectsAll="true"
  52.                                 onkeyup="RIL.filterUpdated();"
  53.                                 emptytext="&ril.emptyFilter;"
  54.                                 noFilter="true" />
  55.                         
  56.                         <menulist tooltiptext="Sort by..." id="RIL_sort" oncommand="RIL.sortUpdated()">
  57.                             <menupopup id="RIL_sort_items">
  58.                                 <menuitem label="&ril.newest;" value="1" />
  59.                                 <menuitem label="&ril.oldest;" value="2" />
  60.                                 <menuitem label="&ril.title;" value="3" />
  61.                                 <menuitem label="&ril.site;" value="4" />
  62.                             </menupopup>
  63.                         </menulist>
  64.                         
  65.                     </hbox>
  66.                     
  67.                     <vbox id="RIL_listMessage" flex="1">
  68.                         <label id="RIL_listMessageText" align="center" />
  69.                     </vbox>
  70.                     <vbox id="RIL_genericMessage" flex="1" />
  71.                                                       
  72.                     <grid id="RIL_list_grid">
  73.                         <columns>
  74.                             <column />
  75.                             <column flex="1" />
  76.                         </columns>
  77.                         
  78.                         <rows id="RIL_list_rows">
  79.                             
  80.                             <row id="RIL_edit_row" hidden="true">
  81.                                 <vbox />
  82.                                 <vbox flex="1">
  83.                                     <textbox id="RIL_edit_title"
  84.                                         onfocus="RIL.xul('tagAutoComplete').hidePopup()"
  85.                                         emptytext="&ril.editPageTitle;" />
  86.                                     <hbox>
  87.                                         <textbox flex="1" id="RIL_edit_tags"
  88.                                         onfocus="this.onkeydown=RIL.tagAutoCompletePress;RIL.xul('tagAutoComplete').openPopup(this, 'after_end', 0, 0);"
  89.                                         emptytext="&ril.editTags;" />
  90.                                         <button label="&ril.save;" oncommand="RIL.saveEdit();" />
  91.                                     </hbox>
  92.                                 </vbox>
  93.                             </row>
  94.                             
  95.                             <row id="RIL_editTag_row" hidden="true">
  96.                                 <vbox />
  97.                                 <hbox flex="1">
  98.                                     <textbox id="RIL_edit_tag"
  99.                                         emptytext="&ril.renameTag;" flex="1" />
  100.                                     <button label="&ril.save;" oncommand="RIL.saveTag();" />
  101.                                 </hbox>
  102.                             </row>
  103.                             
  104.                         </rows>
  105.                     </grid>
  106.                                         
  107.                     <vbox id="RIL_listFooter" flex="1">
  108.                         <hbox align="right">
  109.                             <label id="RIL_listPrevious" class="RIL_dim" value="&ril.Previous;" onclick="RIL.pageMove(-1)" />
  110.                             <label id="RIL_listNext" class="text-link" value="&ril.Next;" onclick="RIL.pageMove(1)" />
  111.                         </hbox>
  112.                         <hbox align="right">
  113.                             <label id="RIL_listPageNumber" value="&ril.Page;:" />
  114.                             <menulist id="RIL_listPage" oncommand="RIL.pageMove()">
  115.                                 <menupopup id="RIL_listPageItems" />
  116.                             </menulist>                    
  117.                         </hbox>
  118.                     </vbox>
  119.                     
  120.                     <vbox id="RIL_offline">                        
  121.                         <description>&ril.offlineDescription;</description>
  122.                         <button oncommand="RIL.offlineStart();" label="&ril.downloadReadingList;" flex="1" />
  123.                                                 
  124.                         <groupbox>
  125.                             <caption label="&ril.options;" />
  126.                             
  127.                             <checkbox id="RIL_offlineOptionDownloadWeb" label="&ril.downloadWeb;" />
  128.                             <checkbox id="RIL_offlineOptionDownloadText" label="&ril.downloadText;" />
  129.                             <label class="text-link" value="&ril.moreOptions;..." onclick="RIL.openOptions('offline')" />
  130.                         </groupbox>
  131.                     </vbox>    
  132.                     
  133.                     
  134.                 </vbox>
  135.             </vbox>
  136.             
  137.         </panel>
  138.         
  139.         <popup id="RIL_item_context" onpopupshowing="RIL.itemContextSetup();">                
  140.                 <menuitem id="RIL_item_open_tab"
  141.                           label="&ril.OpenInNewTab;"
  142.                           oncommand="RIL.itemContextClick(this, 'tab');event.stopPropagation();"/>
  143.                 <menuitem id="RIL_item_open_window"
  144.                           label="&ril.OpenInNewWindow;"
  145.                           oncommand="RIL.itemContextClick(this, 'window');event.stopPropagation();"/>
  146.                 
  147.                 <separator class="groove" />
  148.                 
  149.                 <menu id="RIL_item_share" label="&ril.shareOn;">
  150.                     <menupopup id="RIL_item_shareContent" onpopupshowing="RILshare.populateShareMenu(true, RIL.xul('item_context').getAttribute('url'));event.stopPropagation();">
  151.                         <label style="font-weight:bold;" value="&ril.shareOn;:" />
  152.                         <vbox id="RIL_shareContentContext" />
  153.                         <menu label="&ril.more;...">
  154.                             <menupopup id="RIL_shareMoreContentContext" onpopupshowing="event.stopPropagation();" />
  155.                         </menu>
  156.                     </menupopup>
  157.                 </menu>
  158.                 
  159.                 <separator class="groove" />             
  160.                 
  161.                 <menuitem id="RIL_item_context_edit" label="&ril.editTitleTags;"
  162.                           oncommand="RIL.editItem(false, true);event.stopPropagation();"/>
  163.                 <menuitem id="RIL_content_markAsRead" label="&ril.MarkAsRead;"
  164.                           oncommand="RIL.markListItemAsRead(false, true);event.stopPropagation();"/>
  165.                 <menuitem label="&ril.delete;"
  166.                           oncommand="RIL.itemContextDelete(this);event.stopPropagation();"/>
  167.                 
  168.         </popup>
  169.         
  170.         <panel noautohide="true" id="RIL_tagAutoComplete" onpopupshowing="RIL.populateTagAutoComplete();" onpopupshown="RIL.xul('edit_tags').focus()" position="after_start">                
  171.  
  172.             <vbox id="RIL_tagAutoCompleteContent">
  173.                 <hbox class="RIL_top">
  174.                     <checkbox minheight="0" maxheight="13" minwidth="0" maxwidth="13" />
  175.                     <label style="padding-left:5px" value="Recent tag 1" />
  176.                 </hbox>
  177.                 <hbox class="RIL_top">
  178.                     <checkbox minheight="0" maxheight="13" minwidth="0" maxwidth="13" />
  179.                     <label style="padding-left:5px" value="Recent tag 1" />
  180.                 </hbox>
  181.                 <hbox class="RIL_top">
  182.                     <checkbox minheight="0" maxheight="13" minwidth="0" maxwidth="13" />
  183.                     <label style="padding-left:5px" value="Recent tag 1" />
  184.                 </hbox>
  185.                 <separator class="groove" />
  186.                 <hbox>
  187.                     <checkbox minheight="0" maxheight="13" minwidth="0" maxwidth="13" />
  188.                     <label style="padding-left:5px" value="Recent tag 1" />
  189.                 </hbox>
  190.                 <hbox>
  191.                     <checkbox minheight="0" maxheight="13" minwidth="0" maxwidth="13" />
  192.                     <label style="padding-left:5px" value="Recent tag 1" />
  193.                 </hbox>
  194.             </vbox>
  195.         </panel>
  196.         
  197.     </popupset>    
  198.     
  199.     <stringbundleset id="stringbundleset">
  200.      <stringbundle id="RIL_strings" src="chrome://isreaditlater/locale/jsstrings.properties"/>
  201.     </stringbundleset>    
  202.     
  203.     <page id="RIL_sidebar" flex="1">
  204.         <vbox id="RIL_sidebar_wrapper" flex="1"></vbox>
  205.     </page>
  206.             
  207.     <script type="text/javascript">
  208.                     
  209.             var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
  210.                        .getInterface(Components.interfaces.nsIWebNavigation)
  211.                        .QueryInterface(Components.interfaces.nsIDocShellTreeItem)
  212.                        .rootTreeItem
  213.                        .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
  214.                        .getInterface(Components.interfaces.nsIDOMWindow); 
  215.                        
  216.             if (mainWindow != window)
  217.             {
  218.                 var RILLOADEDINSIDEBAR = true;
  219.                 Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
  220.                   .getService(Components.interfaces.mozIJSSubScriptLoader)
  221.                   .loadSubScript("chrome://isreaditlater/content/RILsidebar.js"); 
  222.                  
  223.                 RILsidebar._init(mainWindow);  
  224.             } else {
  225.                 RILsidebar = false;                
  226.             }
  227.     
  228.     </script>
  229.  
  230. </overlay>
  231.